+2008-01-11 13:28:02 Tim Janik <timj@imendio.com>
+
+ * gtk/gtktestutils.c (gtk_test_create_widget): removed old testutils
+ special casing so test widgets are always queues for destruction
+ during teardown.
+
+ * gtk/tests/testing.c: removed bits left-over from testing without
+ gtestutils.h.
+
2008-01-10 Tor Lillqvist <tml@novell.com>
* modules/other/gail/libgail-util/Makefile.am
* This function wraps g_object_new() for widget types.
* It'll automatically show all created non window widgets, also
* g_object_ref_sink() them (to keep them alive across a running test)
- * and set them up for destruction during test teardown phase.
+ * and set them up for destruction during the next test teardown phase.
*
* Returns: a newly created widget.
*/
if (!GTK_IS_WINDOW (widget))
gtk_widget_show (widget);
g_object_ref_sink (widget);
-#ifdef __G_TESTFRAMEWORK_H__ /* FIXME */
g_test_queue_unref (widget);
g_test_queue_destroy ((GDestroyNotify) gtk_widget_destroy, widget);
-#endif
}
return widget;
}
while (gtk_events_pending ())
gtk_main_iteration ();
g_assert (a == 0 && b > 0 && c == 0);
- gtk_widget_destroy (window); // FIXME: use generic teardown
}
static void
while (gtk_events_pending ())
gtk_main_iteration ();
g_assert (a == 0 && b > 0 && c == 0);
- gtk_widget_destroy (window); // FIXME: use generic teardown
}
static void
while (gtk_events_pending ())
gtk_main_iteration ();
g_assert (gtk_test_slider_get_value (hscale) == +50.0);
- gtk_widget_destroy (window); // FIXME: use generic teardown
}
static void
g_assert (strcmp (text, "") == 0);
g_free (text);
}
- for (i = 0; i < N_WIDGETS; i++)
- gtk_widget_destroy (widgets[i]); // FIXME: use generic teardown
}
static void
}
g_timer_destroy (gtimer);
g_assert (sync_is_slower > 0);
- gtk_widget_destroy (window); // FIXME: use generic teardown
}
static void
gtk_main_iteration ();
oldval = gtk_test_slider_get_value (spinner);
g_assert (oldval == 0);
- /* shutdown */
- gtk_widget_destroy (window); // FIXME: use generic teardown
}
int